$(function(){
	$('#applyState').on('change',filterList);
	$('.imgurl').on('click',smallToBig);
});
function filterList(){
	var url = "cCertificateList";
	var flg = $('#pageNum').val();
	if(flg == 2)
		url = "pCertificateList";
	var state = $('#applyState').val();
	if(state != 0)
		location.href = "/sysAdmin/certificateAdmin/"+url+"/"+state;
	else 
		location.href = "/sysAdmin/certificateAdmin/"+url;
}

function smallToBig(){
	var $this = $( this ) ,
		url = $this.attr("src") ;
    var dialog = null ,
    	html = '<div class="checkview"><img src="'+url+'" width="650px"/></div>';
    dialog = BSTYUN.dialog.creat({
    	title: '查看图片',
    	id:'checkview',
    	content:html
    	});
    dialog.button({
        name: '关闭',
        focus: true,
        callback: null
    });
}